<h5>Vous avez choisi de souscrire aux options</h5>
<div class="row-fluid">
    <table class="table table-hover span6">
    <thead>
	    <tr>
		    <th class="span9"></th>
		    <th class="span2"></th>
	    </tr>
    </thead>
    <tbody>
    <?php if(isset($_POST['top'])):
	?>
	    <tr>
		    <td><span class="pull-right">Remonter mon annonce en tête de liste et multiplier mes contacts </span></td>
		    <td><strong><?php echo $_POST['top']?> euro</strong></td>
	    </tr>    
	<?php 
	endif;
	?>
	
    <?php if(isset($_POST['priority'])):
	?>
	    <tr>
		    <td><span class="pull-right">Mettre mon annonce A la Une et optimiser ma visibilité </span></td>
		    <td><strong><?php echo $_POST['priority']?> euro</strong></td>
	    </tr>    
	<?php 
	endif;
	?>
    <?php if(isset($_POST['urgent'])):
	?>
	    <tr>
		    <td><span class="pull-right">Ajouter un Logo Urgent et vendre plus vite </span></td>
		    <td><strong><?php echo $_POST['urgent']?> euro</strong></td>
	    </tr>    
	<?php 
	endif;
	?>
	
    <?php 
    $total=0;
    if(isset($_POST['urgent']))$total+=$_POST['urgent'];
    if(isset($_POST['priority']))$total+=$_POST['priority'];
    if(isset($_POST['top']))$total+=$_POST['top'];
    
    if($total):
	?>
	    <tr>
		    <td><span class="label pull-right">Total à payer </span></td>
		    <td><strong><?php echo $total?> euro</strong></td>
	    </tr>    
	<?php 
	endif;
	?>
	
	    <tr>
		    <td></td>
		    <td>
		    <form name="frmpaypal"  id="frmpaypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
					<input type="image" src="https://www.paypalobjects.com/fr_FR/FR/i/btn/btn_paynow_SM.gif" border="0" name="submit" alt="payer avec PayPal - c'est simple et securité!">
					<input type="hidden" name="hosted_button_id" value="DKQW37DWTZXXW">
					<input type="hidden" name="cmd" value="_xclick">
					<input type="hidden" name="business" value='starview@live.fr'>
					<input type="hidden" name="amount" value="<?php echo $total?>">
					<input type="hidden" name="item_name" value="payer pour caverne.fr">
					<input type="hidden" name="item_number" value="<?php echo $annonce->prd_id?>">
					<input type="hidden" name="no_note" value="1">
					<input type="hidden" name="no_shipping" value="1">		
					<input type="hidden" name="currency_code" value="EUR">
					<input type="hidden" name="rm" value="2">
					<input type="hidden" name="return" value="<?php echo $CFG->config['base_url']?>/annonce/gerer/payer_confirm">
					<input type="hidden" name="cancel_return"  value="<?php echo $CFG->config['base_url']?>/annonce/gerer/payer">
					<input type="hidden" name="notify_url"  value="<?php echo $CFG->config['base_url']?>/annonce/gerer/payer_tatus">
			</form>
		    
		    </td>
	    </tr>  
	
    </tbody>

    </table>
</div>
